package com.frame.domain;

import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import org.web3j.abi.datatypes.Int;

import java.util.Date;

@Data
public class Crop {
    @ExcelProperty(value = "序号")
    private Integer cropId;
    @ExcelProperty(value = "编码")
    private String cropEncoding;
    @ExcelProperty(value = "农产品名称")
    private String name;
    @ExcelProperty(value = "种植基地")
    private Integer plantationId;
    @ExcelProperty(value = "农户")
    private Integer userId;
    @ExcelProperty(value = "图片")
    private String img;
    @ExcelProperty(value = "省")
    private Integer provinceId;
    @ExcelProperty(value = "市")
    private Integer cityId;
    @ExcelProperty(value = "区")
    private Integer areaId;
    @ExcelProperty(value = "种植方式")
    private Integer plantingMethodId;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ExcelProperty(value = "创建时间")
    private Date createTime;
    @ExcelProperty(value = "创建人")
    private String createBy;
    @ExcelProperty(value = "状态")
    private Integer status;
    @ExcelProperty(value = "占地(亩)")
    private Integer coverArea;
    @ExcelProperty(value = "产量(万)")
    private Integer output;
    @ExcelProperty(value = "是否质检")
    private Integer isquality;
    private String provinceName;
    private String cityName;
    private String districtName;
    private String pname;
    private String mname;
    private String uname;



    private Integer[] plantationIds;
}
